<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/9/7
 * Time: 22:11
 */

namespace app\models;


use yii\db\ActiveRecord;

class Comment extends ActiveRecord{
    public $id;
    public $pid;
    public $username;
    public $context;
    public $time;

    public static function tableName()
    {
        return 'comment';
    }

    public function rules()
    {
        return [[["username","time","context","pid"],"required",],

        ];

    }


}